"""CreateCategoryTable Migration."""

from masoniteorm.migrations import Migration


class CreateCategoryTable(Migration):
    def up(self):
        """
        Run the migrations.
        """
        with create("category") as table:
            table.increments("id")
            table.char("name_zh", 255)
            table.char("name_ug", 255)
            table.string("icon")
            table.timestamps()
    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop("category")
